//
//  testView.m
//  hitTestDemo
//
//  Created by 哆啦 on 2019/11/23.
//  Copyright © 2019 哆啦. All rights reserved.
//

#import "testView.h"

@implementation testView

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
//    for (UIView *subV in self.subviews) {
//        [subV isKindOfClass:[UIButton class]];
//
//        CGPoint subP = [self convertPoint:point toView:subV];
//        if ([subV pointInside:subP withEvent:event]) {
//            return subV;
//        }
//    }
//    return [super hitTest:point withEvent:event];
    
    return nil;
}

@end
